package cc.mrbird.unit.domain;

import cc.mrbird.common.annotation.ExportConfig;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Table(name="contact_role")
public class ContactRole implements Serializable {
    /**
     * 角色（包括安全责任人、安全联络人、安全巡查人等）
     */
    private static final long serialVersionUID = -1713376694755654924L;

    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "contact_role_id")
    private Long contact_role_id;

    @Column(name = "contact_role_name")
    @ExportConfig(value = "角色")
    private String contact_role_name;

    public Long getContact_role_id() {
        return contact_role_id;
    }

    public void setContact_role_id(Long contact_role_id) {
        this.contact_role_id = contact_role_id;
    }

    public String getContact_role_name() {
        return contact_role_name;
    }

    public void setContact_role_name(String contact_role_name) {
        this.contact_role_name = contact_role_name;
    }

    @Override
    public String toString() {
        return "ContactRole{" +
                "contact_role_id=" + contact_role_id +
                ", contact_role_name='" + contact_role_name + '\'' +
                '}';
    }
}
